﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace CascadeDropDown.Component
{
    public class MyTextBox : TextBox, IMyControl
    {
        public string FormatString { get; set; }
        public string BindColumnName
        {
            get;
            set;
        }

        public void setValue(object value)
        {
            this.Text = value.ToString();
        }

        public object getValue()
        {
            return string.IsNullOrEmpty(this.Text) ? null : this.Text;
        }

        public bool ControlEnabled
        {
            get
            {
                return this.Enabled;
            }
            set
            {
                this.Enabled = value;
            }
        }
        public override bool Enabled
        {
            get
            {
                return base.Enabled;
            }
            set
            {
                base.Enabled = value;
            }
        }
    }
}